const request = uni.$u.http;

// 登录
export function codeMsg(params, config) {
	return request.post('/app-api/house/app-user/getPhone', params, {
		custom: {
			auth: false
		}
	})
}

// 获取微信用户信息详细信息
export function userInfos(params) {
	return request.get('/app-api/house/app-user/getUserInfo', {
		params
	})
}

// 更新用户昵称
export function updateNickName(data) {
	return request.post('/app-api/house/app-user/updateNickName', '', {
		params: data
	})
}
// 更新用户头像
export function updateAvatarUrl(data) {
	return request.post('/app-api/house/app-user/updateAvatarUrl', '', {
		params: data
	})
}

//获得声明信息
export function declarations(params) {
	return request.get('/app-api/house/app-declarations/page', {
		params
	})
}